package com.wyj.user.api;

import com.wyj.response.ApiResult;
import com.wyj.user.entity.vo.UserVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * TODO: 用户API
 *
 * @author wuyijie
 * @date 2022/2/12 10:50 PM
 */
@Api(value = "IUserApi", tags = "用户相关API")
public interface IUserApi {

    /**
     * TODO: 用户信息查询
     *
     * @author wuyijie
     * @date 2022/2/14 3:32 PM
     * @param token token
     * @return com.wyj.response.ApiResult<com.wyj.user.entity.vo.UserVO>
     */
    @ApiOperation(value = "user", notes = "用户信息查询（by token）")
    @RequestMapping(value = "/token/{token}", method = RequestMethod.GET)
    ApiResult<UserVO> user(@PathVariable("token") String token);
}
